package dao;

import hbt.HibernateDAO;

import org.hibernate.Session;
import org.hibernate.Transaction;
import bean.PedidoBean;

public class PedidoDao {

	public void altaPedido(PedidoBean P)
	{
		Session s = HibernateDAO.getInstancia().getSession();
		Transaction t = s.beginTransaction();
		s.save(P);
		t.commit();
	}

}
